
package com.ruoyi.client.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 用户注册param
 */
@Data
public class UserRegisterForm {

    @ApiModelProperty(value = "用户名", position = 1, required = true)
    @NotEmpty(message = "用户名不能为空")
    private String name;

    @ApiModelProperty(value = "用户密码", position = 2, required = true)
    @NotEmpty(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "手机号码", position = 3, required = true)
    @NotEmpty(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "地址", position = 4, required = true)
    @NotEmpty(message = "地址不能为空")
    private String address;

    @ApiModelProperty(value = "邮箱地址", position = 5, required = true)
    @NotEmpty(message = "邮箱地址不能为空")
    private String email;

    @ApiModelProperty(value = "性别", position = 6)
    private Byte gender;

    @ApiModelProperty(value = "头像", position = 7)
    private String avatar;

    @ApiModelProperty(value = "昵称", position = 8)
    private String nickName;

    @ApiModelProperty(value = "备注", position = 9)
    private String remark;
}
